#include "title.h"
#include <sstream>
using namespace std;

string title::to_xml() const
{
	stringstream stream;
	stream << _duration;
	return "<title name=\"" + _name + "\" file=\"" + _file + 
		"\" duration=\"" + stream.str() + "\" />";
}

